/**
 * 作者: hxl
 * 日期: 2024-10-18 09:32:15
 * 备注: 秘书技能表
 */
package com.motu.monstercity.server.game.commondata.secretary;

import io.vertx.core.json.JsonObject;

public class SecretaryPotentialSkillModel {
    protected int id; // id
    protected int level; // 技能等级
    protected String des; // 技能描述
    protected int icon; // 图标
    protected int needFavorite; // 需要喜爱值达到解锁 (喜爱值为secretary_main表favorite_value字段)
    protected int minValue; // 最低加成
    protected int characterType; // 性格类型

    public SecretaryPotentialSkillModel() {
    }

    public SecretaryPotentialSkillModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        level = obj.containsKey("level") ? obj.getInteger("level") : 0;
        des = obj.containsKey("des") ? obj.getString("des") : "";
        icon = obj.containsKey("icon") ? obj.getInteger("icon") : 0;
        needFavorite = obj.containsKey("need_favorite") ? obj.getInteger("need_favorite") : 0;
        minValue = obj.containsKey("min_value") ? obj.getInteger("min_value") : 0;
        characterType = obj.containsKey("character_type") ? obj.getInteger("character_type") : 0;
    }

    public int getId() {
        return id;
    }

    public int getLevel() {
        return level;
    }

    public String getDes() {
        return des;
    }

    public int getIcon() {
        return icon;
    }

    public int getNeedFavorite() {
        return needFavorite;
    }

    public int getMinValue() {
        return minValue;
    }

    public int getCharacterType() {
        return characterType;
    }

}
